package com.net.xpay.core.manager.auto;

import com.net.common.manager.VersionedManager;
import com.net.xpay.core.domain.auto.AutoPayBatch;
import com.net.xpay.core.model.AutoPayBatchSearchModel;

import java.util.List;


public interface AutoPayBatchManager extends VersionedManager<Long,AutoPayBatch> {
    AutoPayBatch findByImportBatchNo(Long userId, String importBatchNo);

    /**
     * 带条件分页搜索
     * @param searchModel
     * @return
     */
    List<AutoPayBatch> search(AutoPayBatchSearchModel searchModel);

    /**
     * 搜索次数
     * @param searchModel
     * @return
     */
    long searchCount(AutoPayBatchSearchModel searchModel);



    AutoPayBatch findById(Long userId,Long id);
}
